HOME/Articles/

Snippet to know if installed via TestFlight

Article Outline
func isTestFlight() -> Bool {
  guard let appStoreReceiptURL = Bundle.main.appStoreReceiptURL else {
    return false
  }
  return appStoreReceiptURL.lastPathComponent == "sandboxReceipt"
}